package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Permission;

/**
 * 权限管理接口
 * @author xgm
 * @date 2020/11/21
 */

public interface PermissionService {

    //分页查询
    PageResult pageQuery(QueryPageBean queryPageBean);

    //新增权限
    void add(Permission permission);

    //删除权限
    void delete(Integer id);

    //根据ID查找,去前端回显
    Permission findById(Integer id);

    //更新
    void edit(Permission permission);
}
